<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<div class="page">
	<div class="pageContent">
		<form id="customerInfo" method="post" action="${ctx }/crm/customer!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="userList"/>
			<div class="pageFormContent" layoutH="56">
				<p>
					<label>客户姓名：</label>
					<input name="linkman"  class="required" type="text" size="30" value="${linkman}" />
				</p>
				<p>
					<label>性别：</label>
					<input name="gender" type="radio" value="1" <s:if test="gender !=2 ">checked</s:if> /> 男 <input name="gender" type="radio" value="2" <s:if test="gender ==2 ">checked</s:if>/> 女
				</p>
				<p>
					<label>公司名称：</label>
					<input name="company" type="text" size="30" value="${company}" />
				</p>
				<p>
					<label>职位：</label>
					<input name="position" type="text" size="30" value="${position}" alt="请输入真实姓名"/>
				</p>
				<p>
					<label>联系地址：</label>
					<input name="address" type="text" size="30" alt="" value="${address}"/>
				</p>
				<p>
					<label>邮编：</label>
					<input name="zip" value="${zip}" class="zipcode" type="text" size="30" />		
				</p>
				<p>
					<label>手机：</label>
					<input type="text" class="mobile" name="mobile"  value="${mobile}" size="30" />
				</p>
				<p>
					<label>固话：</label>
					<input type="text" class="telephone"  name="tel"  value="${tel}" size="30" />
				</p>
				<p>
					<label>传真：</label>
					<input type="text" class="telephone"  name="fax"  value="${fax}" size="30" />
				</p>
				<p>
					<label>公司主页：</label>
					<input type="text" name="homepage"  value="${homepage}" class="url" size="30" />
				</p>
				<p>
					<label>邮箱：</label>
					<input type="text" class="email"  name="email"  value="${email}" size="30" />
				</p>
				<p>
					<label>客户来源：</label>
					<input type="text"   name="cfrom"  value="${cfrom}" size="30" />
				</p>
				<p>
					<label>客户类型：</label>
					<input type="hidden" id="customertype" name="customertype"  value="${customertype}" size="30" />
					<input type="text" id="typeName" class="required"  name="typeName"  value="${type.name}" size="30" />
					<a class="inputButton" href="${ctx }/common/sys-type-ui!getSysClassUL.action?code=CUSTOMER_TYPE&leafNode=true&idInput=customertype&nameInput=typeName&form=customerInfo&dlgID=customerTypeDlgtype&cascadeName=false" target="dialog" rel="customerTypeDlgtype">客户类型</a>
				</p>
				<p>
					<label>客户星级：</label>
					<input type="hidden" name="star" id="star" value="${star}" size="30" />
					<input type="text" class="required"  name="starName" id="starName"  value="${customerStar.name}" size="30" />
					<a class="inputButton" href="${ctx }/common/sys-type-ui!getSysClassUL.action?code=CUSTOMER_LEVEL&leafNode=true&idInput=star&nameInput=starName&form=customerInfo&dlgID=customerLevelDlgtype&cascadeName=false" target="dialog" rel="customerLevelDlgtype">客户星级</a>
				</p>
				<p>
					<label>M S N：</label>
					<input type="text" class="email"  name="msn"  value="${msn}" size="30" />
				</p>
				<p>
					<label>Q  Q：</label>
					<input type="text" class="qq"  name="qq"  value="${qq}" size="30" />
				</p>
				<p>
					<label>所属用户：</label>
					<s:if test="belong==null">
					<input type="hidden" class="required" id="belong" name="belong"  value="${currUser.id}" size="30" />
					<input type="text" class="required" id="username" name="username"  value="${currUser.name}" size="30" />
					</s:if>
					<s:else>
					<input type="hidden" class="required" id="belong" name="belong"  value="${belong}" size="30" />
					<input type="text" class="required" id="username" name="username"  value="${username}" size="30" />
					</s:else>
				</p>
				<p>
					<label>生日：</label>
					<input type="text" name="birthday" value="${birthday}" size="30" readonly="true"/>
					<a class="inputDateButton" href="#" onClick="WdatePicker({el:'birthday',dateFmt:'yyyy-MM-dd'})">选择</a>
				</p>

				<p  class="textareaBar" >
					<label>备 注：</label>
					<textarea name="note" rows="5" cols="30" >${note}</textarea>
				</p>
				<p  class="textareaBar" >
					<label>客户描述：</label>
					<textarea name="description" rows="5" cols="30" >${description}</textarea>
				</p>

			</div>
			<div class="formBar">
				<ul>
					<!--<li><a class="buttonActive" href="#"><span>保存</span></a></li>-->
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>